public class PCB {
    //定义控制进程块的各个属性
    int id;
    int priority;
    //优先级
    int cpuTime;
    //已用cpu时间
    int allTime;
    //总需时间
    int remainTime;
    //剩余时间
    int finishTime;
    //结束时间
    String state;
    //结束状态

    public PCB(int id, int priority, int allTime) {
        this.id = id;
        this.priority = priority;
        this.cpuTime = 0;
        this.allTime = allTime;
        this.remainTime = allTime;
        this.finishTime = 0;
        this.state = "就绪";
    }
}
